package com.ra.util;

import java.util.List;

/**
 * 地区模型
 *
 * @author  colin 
 * @version 2014-8-23
 */
public class Area {
	
	//地区ID
	String areaId;
	
	//地区名
	String areaName;
	
	//地区所属等级
	String level;
	
	//上级地区ID
	String fatherId;
	
	//地区CODE(唯一标识), 由多级地域ID,经下划线连接构成
	String areaCode;
	
	// 下级AddressCode集合
	List<AddressCode> addressCodes;
	
	public List<AddressCode> getAddressCodes() {
		return addressCodes;
	}
	public void setAddressCodes(List<AddressCode> addressCodes) {
		this.addressCodes = addressCodes;
	}
	/**
	 * @return the areaId
	 */
	public String getAreaId() {
		return areaId;
	}
	/**
	 * @param areaId the areaId to set
	 */
	public void setAreaId(String areaId) {
		this.areaId = areaId;
	}
	/**
	 * @return the areaName
	 */
	public String getAreaName() {
		return areaName;
	}
	/**
	 * @param areaName the areaName to set
	 */
	public void setAreaName(String areaName) {
		this.areaName = areaName;
	}
	
	/**
	 * @return the level
	 */
	public String getLevel() {
		return level;
	}
	/**
	 * @param level the level to set
	 */
	public void setLevel(String level) {
		this.level = level;
	}
	
	/**
	 * @return the fatherId
	 */
	public String getFatherId() {
		return fatherId;
	}
	/**
	 * @param fatherId the fatherId to set
	 */
	public void setFatherId(String fatherId) {
		this.fatherId = fatherId;
	}
	
	public String getAreaCode() {
		return areaCode;
	}
	public void setAreaCode(String areaCode) {
		this.areaCode = areaCode;
	}
	
	/* (non-Javadoc)
	 * @see java.lang.Object#toString()
	 */
	@Override
	public String toString() {
		return "Area [areaId=" + areaId + ", areaName=" + areaName + ", level=" + level + ", fatherId="
        + fatherId +", areaCode="+ areaCode + "]";
	}
	
}
